.class Les/d70$a;
.super Ljava/lang/Thread;
.source "ESDownloadTask.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/d70;->y()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field a:I

.field b:I

.field c:[J

.field d:J

.field final synthetic e:Les/d70;


# direct methods
.method constructor <init>(Les/d70;)V
    .locals 2

    .line 1
    iput-object p1, p0, Les/d70$a;->e:Les/d70;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    const/16 p1, 0x3e8

    .line 2
    iput p1, p0, Les/d70$a;->a:I

    const/16 v0, 0x7530

    .line 3
    div-int/2addr v0, p1

    iput v0, p0, Les/d70$a;->b:I

    .line 4
    new-array p1, v0, [J

    iput-object p1, p0, Les/d70$a;->c:[J

    const-wide/16 v0, 0x0

    .line 5
    iput-wide v0, p0, Les/d70$a;->d:J

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    .line 1
    :cond_0
    :goto_0
    iget-object v0, p0, Les/d70$a;->e:Les/d70;

    iget-boolean v0, v0, Les/d70;->F:Z

    if-eqz v0, :cond_1

    return-void

    .line 2
    :cond_1
    iget-wide v0, p0, Les/d70$a;->d:J

    const-wide/16 v2, 0x1

    add-long/2addr v0, v2

    iput-wide v0, p0, Les/d70$a;->d:J

    .line 3
    :try_start_0
    iget v0, p0, Les/d70$a;->a:I

    int-to-long v0, v0

    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    nop

    .line 4
    :goto_1
    iget-object v0, p0, Les/d70$a;->e:Les/d70;

    invoke-static {v0}, Les/d70;->a(Les/d70;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    const/4 v1, 0x1

    .line 5
    :goto_2
    iget v2, p0, Les/d70$a;->b:I

    if-ge v1, v2, :cond_2

    .line 6
    iget-object v2, p0, Les/d70$a;->c:[J

    add-int/lit8 v3, v1, -0x1

    aget-wide v4, v2, v1

    aput-wide v4, v2, v3

    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 7
    :cond_2
    iget-object v1, p0, Les/d70$a;->e:Les/d70;

    iget-object v2, v1, Les/s80;->c:Les/w80$a;

    iget-wide v2, v2, Les/w80$a;->f:J

    iget-object v1, v1, Les/d70;->S:Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    sub-long/2addr v2, v4

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    .line 8
    iget-object v2, p0, Les/d70$a;->c:[J

    iget v3, p0, Les/d70$a;->b:I

    sub-int/2addr v3, v0

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    aput-wide v0, v2, v3

    .line 9
    iget-object v0, p0, Les/d70$a;->e:Les/d70;

    iget-object v1, v0, Les/s80;->c:Les/w80$a;

    iget-wide v1, v1, Les/w80$a;->f:J

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    iput-object v1, v0, Les/d70;->S:Ljava/lang/Long;

    const/4 v0, 0x0

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 10
    :goto_3
    iget v3, p0, Les/d70$a;->b:I

    if-ge v1, v3, :cond_3

    int-to-long v2, v2

    .line 11
    iget-object v4, p0, Les/d70$a;->c:[J

    aget-wide v5, v4, v1

    add-long/2addr v2, v5

    long-to-int v2, v2

    add-int/lit8 v1, v1, 0x1

    goto :goto_3

    .line 12
    :cond_3
    iget-object v1, p0, Les/d70$a;->e:Les/d70;

    iget-object v1, v1, Les/s80;->c:Les/w80$a;

    iget-wide v4, v1, Les/w80$a;->f:J

    iget-wide v6, v1, Les/w80$a;->e:J

    cmp-long v8, v4, v6

    if-ltz v8, :cond_4

    .line 13
    iput v0, v1, Les/w80$a;->b:I

    goto :goto_5

    :cond_4
    int-to-float v0, v2

    float-to-double v4, v0

    .line 14
    iget-wide v6, p0, Les/d70$a;->d:J

    int-to-long v8, v3

    cmp-long v0, v6, v8

    if-gez v0, :cond_5

    goto :goto_4

    :cond_5
    int-to-long v6, v3

    :goto_4
    iget v0, p0, Les/d70$a;->a:I

    int-to-long v2, v0

    mul-long v6, v6, v2

    long-to-double v2, v6

    const-wide v6, 0x408f400000000000L    # 1000.0

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v2, v6

    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v4, v2

    double-to-int v0, v4

    iput v0, v1, Les/w80$a;->b:I

    .line 15
    :goto_5
    iget-object v0, p0, Les/d70$a;->e:Les/d70;

    invoke-virtual {v0}, Les/s80;->m()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 16
    iget-object v0, p0, Les/d70$a;->e:Les/d70;

    iget-object v1, v0, Les/s80;->c:Les/w80$a;

    invoke-virtual {v0, v1}, Les/s80;->a(Les/w80$a;)V

    goto/16 :goto_0
.end method
